package com.css.bjdt_report.report.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

import lombok.Data;

@Data
public class RptTemplateUnitRela {
	private static SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd");
	private String id;
	private String annualId;
	private String templateId;	
	private Date startTime;
	private Date endTime;
	private String unitId;
	private String fullName;
	private String relMan;
	
	public String getStartTimeStr(){
		return format.format(this.getStartTime());
	}
	public String getEndTimeStr(){
		return format.format(this.getEndTime());
	}
	public String getStartEndTime(){
		return getStartTimeStr()+"-"+getEndTimeStr();
	}
}
